﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using V5_BLL;
using System.Data;
using V5_Common;

namespace V5_EShop._Class.Data {
    public class V5AnnounceHelper {
        private static readonly V5AnnounceHelper m_Instance = new V5AnnounceHelper();
        /// <summary>
        /// 
        /// </summary>
        public static V5AnnounceHelper Instance {
            get { return m_Instance; }
        }
        BLLAnnounce bll = new BLLAnnounce();

        public DataRow GetDataRow(object oID) {
            string id = InputHelper.SetString(oID);
            DataTable dt = bll.GetList(" And ID=" + id).Tables[0];
            if (dt.Rows.Count > 0) {
                return dt.Rows[0];
            }
            else {
                return dt.NewRow();
            }
        }
    }
}